package com.xlfc.consumer.controller;


import com.xlfc.api.HelloService;
import com.xlfc.common.annotion.Reference;
import com.xlfc.common.annotion.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;


@Component
public class HelloController {

    @Reference(group = "group1",version = "version1")
    private HelloService helloService;

    public void test(){
        String result = this.helloService.sayHello("测试执行客户端");
        System.out.println(result);
    }
}
